<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="form-signin" action="{% url 'system:login' %}" method="post">
    {% csrf_token %}

    {% for field in form %}
        {{ field }}
        {{ field.errors }}
    {% endfor %}

    <input type="hidden" name="next" value="{{ redirect_to }}">
    <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>

    <div class="checkbox">
        {% comment %}<a class="pull-right">Need help?</a>{% endcomment %}
        <label>
            <input type="checkbox" value="remember-me"> Stay signed in
        </label>
    </div>
{#    {% load oauth_tags %}#}
{#    {% load_oauth_applications request%}#}
</form>
</body>
</html>